<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Config;

class Share extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
    }

    public function app(){
        $url=Config::get('site.ShareUrl');
        echo <<<EOF
        <html>
            <head>
            <title>库尚商城双十一•7折充话费</title>
            </head>
            <body>
            <style>
	            .share_div{width:0px;height:0px;overflow:hidden;}
            </style>
            <div class="share_div"><img src="http://pt-img.sdgjjy.com/uploads/20201007/033e79b22a374581a5d1a82d863d652d.jpg"/></div>
<!--            <img src="http://pt-img.sdgjjy.com/uploads/20200917/c385f402570ffaa1ac771a608be7e1fe.png" style="width: 100px;height: 100px">-->
            </body>
        </html>
        <script>
        document.write("<h3>页面跳转中...</h3>")
        setTimeout(function(){window.location.href = '{$url}'},2000);
        </script>
EOF;
    }
    public function app1(){
        $url=Config::get('site.ShareUrl1');
        echo <<<EOF
        <html>
            <head>
            <title>库尚商城双十一•7折充话费</title>
            </head>
            <body>
            <style>
	            .share_div{width:0px;height:0px;overflow:hidden;}
            </style>
            <div class="share_div"><img src="http://pt-img.sdgjjy.com/uploads/20201007/033e79b22a374581a5d1a82d863d652d.jpg"/></div>
<!--            <img src="http://pt-img.sdgjjy.com/uploads/20200917/c385f402570ffaa1ac771a608be7e1fe.png" style="width: 100px;height: 100px">-->
            </body>
        </html>
        <script>
        document.write("<h3>页面跳转中...</h3>")
        setTimeout(function(){window.location.href = '{$url}'},2000);
        </script>
EOF;
    }
    public function app2(){
        $url=Config::get('site.ShareUrl2');
        echo <<<EOF
        <html>
            <head>
            <title>库尚商城双十一•7折充话费</title>
            </head>
            <body>
            <style>
	            .share_div{width:0px;height:0px;overflow:hidden;}
            </style>
            <div class="share_div"><img src="http://pt-img.sdgjjy.com/uploads/20201007/033e79b22a374581a5d1a82d863d652d.jpg"/></div>
<!--            <img src="http://pt-img.sdgjjy.com/uploads/20200917/c385f402570ffaa1ac771a608be7e1fe.png" style="width: 100px;height: 100px">-->
            </body>
        </html>
        <script>
            var _hmt = _hmt || [];
            (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?df6891a06341138ed87485fbdb8f9543";
            var s = document.getElementsByTagName("script")[0]; 
            s.parentNode.insertBefore(hm, s);
            })();
        </script>
        <script>
        document.write("<h3>页面跳转中...</h3>")
        setTimeout(function(){window.location.href = '{$url}'},2000);
        </script>

EOF;
    }
    public function app3(){
        $url=Config::get('site.ShareUrl3');
        echo <<<EOF
        <html>
            <head>
            <title>库尚商城双十一•7折充话费</title>
            </head>
            <body>
            <style>
	            .share_div{width:0px;height:0px;overflow:hidden;}
            </style>
            <div class="share_div"><img src="http://pt-img.sdgjjy.com/uploads/20201007/033e79b22a374581a5d1a82d863d652d.jpg"/></div>
<!--            <img src="http://pt-img.sdgjjy.com/uploads/20200917/c385f402570ffaa1ac771a608be7e1fe.png" style="width: 100px;height: 100px">-->
            </body>
        </html>
        <script>
        document.write("<h3>页面跳转中...</h3>")
        setTimeout(function(){window.location.href = '{$url}'},2000);
        </script>
EOF;
    }
    public function app4(){
        $url=Config::get('site.ShareUrl4');
        echo <<<EOF
        <html>
            <head>
            <title>库尚商城双十一•7折充话费</title>
            </head>
            <body>
            <style>
	            .share_div{width:0px;height:0px;overflow:hidden;}
            </style>
            <div class="share_div"><img src="http://pt-img.sdgjjy.com/uploads/20201007/033e79b22a374581a5d1a82d863d652d.jpg"/></div>
<!--            <img src="http://pt-img.sdgjjy.com/uploads/20200917/c385f402570ffaa1ac771a608be7e1fe.png" style="width: 100px;height: 100px">-->
            </body>
        </html>
        <script>
        document.write("<h3>页面跳转中...</h3>")
        setTimeout(function(){window.location.href = '{$url}'},2000);
        </script>
EOF;
    }

    public function download(){
        $url='http://a.app.qq.com/o/simple.jsp?pkgname=com.kushang.app';
        echo <<<EOF
        <html>
            <head>
            <title>库尚</title>
            </head>
            <body>
            <style>
	            .share_div{width:0px;height:0px;overflow:hidden;}
            </style>
            <div class="share_div"><img src="http://pt-img.sdgjjy.com/uploads/20200917/c385f402570ffaa1ac771a608be7e1fe.png"/></div>
<!--            <img src="http://pt-img.sdgjjy.com/uploads/20200917/c385f402570ffaa1ac771a608be7e1fe.png" style="width: 100px;height: 100px">-->
        专业选品团队，每日精选优质好货。
        细化分类，人工筛选爆款优品。
            </body>
        </html>
        <script>
        var _hmt = _hmt || [];
        (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?72e7d9f76c8c9a880be5c49e50ea5d28";
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
        })();
        </script>

        <script>
        //document.write("<h3>页面跳转中...</h3>")
        setTimeout(function(){window.location.href = '{$url}'},2000);
        </script>

EOF;
    }
}
